<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>多个文件上传</title>
	<!-- 引入js文件 -->
	<script type="text/javascript" src="http://cdn.bootcss.com/jquery/2.1.4/jquery.min.js"></script>
	<script type="text/javascript">
	function cloneLi () {
		var li=$('li').eq(0).clone();
		$('ul').append(li);
	}

	</script>
</head>
<body>
	<form action="up03.php" method="post" enctype="multipart/form-data">
		<input type="file" name="icon">
		<ul>
			<li>
				<input type="file" name="up[]">
				<!-- 通过点击[+增加文件域] -->
				<span onclick="cloneLi()">[+]</span>
			</li>
		</ul>
		<br/>
		<input type="submit" value="上传文件">



	</form>
</body>
</html>